package com.platform.system.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.annotation.Excel;
import com.platform.common.core.domain.BaseEntity;

/**
 * 地址对象 pro_address
 *
 * @author platform
 * @date 2025-02-23
 */
@Schema(name = "地址对象", description = "")
public class ProAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @Excel(name = "序号")
    @Schema(description = "序号", implementation = Long.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private Long id;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    @Schema(description = "联系人", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String linkUser;

    /**
     * 联系地址
     */
    @Excel(name = "联系地址")
    @Schema(description = "联系地址", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String linkAddress;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    @Schema(description = "联系电话", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String linkPhone;

    /**
     * 所属用户
     */
    @Excel(name = "所属用户")
    @Schema(description = "所属用户", implementation = Long.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private Long userId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLinkUser(String linkUser) {
        this.linkUser = linkUser;
    }

    public String getLinkUser() {
        return linkUser;
    }

    public void setLinkAddress(String linkAddress) {
        this.linkAddress = linkAddress;
    }

    public String getLinkAddress() {
        return linkAddress;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("linkUser", getLinkUser())
                .append("linkAddress", getLinkAddress())
                .append("linkPhone", getLinkPhone())
                .append("userId", getUserId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
